package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceCodeMapper;
import com.ruoyi.service.domain.ServiceCode;
import com.ruoyi.service.service.IServiceCodeService;

/**
 * 验证码表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-03
 */
@Service
public class ServiceCodeServiceImpl implements IServiceCodeService 
{
    @Autowired
    private ServiceCodeMapper serviceCodeMapper;

    /**
     * 查询验证码表
     * 
     * @param codeId 验证码表主键
     * @return 验证码表
     */
    @Override
    public ServiceCode selectServiceCodeByCodeId(Long codeId)
    {
        return serviceCodeMapper.selectServiceCodeByCodeId(codeId);
    }

    /**
     * 查询验证码表列表
     * 
     * @param serviceCode 验证码表
     * @return 验证码表
     */
    @Override
    public List<ServiceCode> selectServiceCodeList(ServiceCode serviceCode)
    {
        return serviceCodeMapper.selectServiceCodeList(serviceCode);
    }

    /**
     * 新增验证码表
     * 
     * @param serviceCode 验证码表
     * @return 结果
     */
    @Override
    public int insertServiceCode(ServiceCode serviceCode)
    {
        return serviceCodeMapper.insertServiceCode(serviceCode);
    }

    /**
     * 修改验证码表
     * 
     * @param serviceCode 验证码表
     * @return 结果
     */
    @Override
    public int updateServiceCode(ServiceCode serviceCode)
    {
        return serviceCodeMapper.updateServiceCode(serviceCode);
    }

    /**
     * 批量删除验证码表
     * 
     * @param codeIds 需要删除的验证码表主键
     * @return 结果
     */
    @Override
    public int deleteServiceCodeByCodeIds(Long[] codeIds)
    {
        return serviceCodeMapper.deleteServiceCodeByCodeIds(codeIds);
    }

    /**
     * 删除验证码表信息
     * 
     * @param codeId 验证码表主键
     * @return 结果
     */
    @Override
    public int deleteServiceCodeByCodeId(Long codeId)
    {
        return serviceCodeMapper.deleteServiceCodeByCodeId(codeId);
    }
}
